import { Button, Drawer, Input, message } from 'antd';
import { useAccess, Access, useModel, } from 'umi';

export default function Page() {
	const access = useAccess();

	console.log(access)
	if(access.userTest){
		console.log('有权限');
	}else{
		console.log('无权限');
	}

	return <div>
		<p>测试页面</p>
		<Access
			accessible={ access.userTest! }
			fallback={ <div>你根本没有资格参加这个会</div> }
		>
			<Button>测试按钮，马自达</Button>
		</Access>
	</div>
}
